// com.sadam.ui4.Utils.NoScrollLinearLayoutManager
package com.sadam.ui4.Utils;

import android.content.Context;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

/**
 * 禁止滑动的LinearLayoutManager
 * 用于单视频播放场景
 */
public class NoScrollLinearLayoutManager extends LinearLayoutManager {

    public NoScrollLinearLayoutManager(Context context) {
        super(context);
    }

    @Override
    public boolean canScrollVertically() {
        // 完全禁止垂直滑动
        return false;
    }

    @Override
    public boolean canScrollHorizontally() {
        // 完全禁止水平滑动
        return false;
    }
}